package org.qingke.mail.item.service.controller;


import org.qingke.mail.common.SearchProperty;
import org.qingke.mail.common.ServerResponse;
import org.qingke.mail.item.service.provider.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商品服务接口
 * @author JAVA
 *
 */
@RestController
@RequestMapping("/item")
public class ItemServerController {
	
	@Autowired
	private ItemService itemServer;

	@RequestMapping(value="/list",method={RequestMethod.POST})
	public ServerResponse list(@RequestBody SearchProperty searchProperty){
		return itemServer.list(searchProperty);
	}
	
}
